<?php

require_once 'PipesImpl/FileSystem/Controller/Finder.php';

class Pipes_FileSystem_Controller_Loader
{
	private $_finder = null;

	public function __construct(PipesImpl_FileSystem_Controller_Finder $finder) {
		$this->_finder = $finder;
	}

	public function load($name) {
		$file = $this->_finder->find($name);
		$file->requireOnce();
	}

	public function __get($key) {
		return $this->_finder->$key;
	}
}
